<?php /* Smarty version 2.6.14, created on 2015-01-22 16:23:23
         compiled from servers_manager.add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'servers_manager.add.html', 20, false),array('modifier', 'date_format', 'servers_manager.add.html', 130, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/ui.datetimepicker.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo @BASEURI; ?>
public/css/ui.datepicker.css"/>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<input type="hidden" name="server_id" value="<?php echo $this->_tpl_vars['server']['server_id']; ?>
" />
<dl class="adminoption">
  <dt></dt>
  <dd><a href="#tab1"><?php echo $this->_tpl_vars['systemLang']['baseinfo']; ?>
</a></dd>
</dl>
<div id="tab1" class="tab">
<table width="100%" border="0" class="adminform">
  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['deviceType']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td>
    	<select name="server[device]">
    	<option value="" ><?php echo $this->_tpl_vars['systemLang']['select']; ?>
</option>
        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['devices'],'selected' => $this->_tpl_vars['server']['device']), $this);?>

    	</select>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['specialServices']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td>
    	<select name="server[specialized]">
    	<option value="" >==无==</option>
        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['specialized'],'selected' => $this->_tpl_vars['server']['specialized']), $this);?>

    	</select>
	</td>
    <td>&nbsp;</td>
  </tr>

  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['games']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td><select name="server[game_id]">
        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['mygames'],'selected' => $this->_tpl_vars['server']['game_id']), $this);?>

    </select></td>
    <td>&nbsp;</td>
  </tr>

  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['serverName']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td><input type="text" class="text" name="server[server_name]" value="<?php echo $this->_tpl_vars['server']['server_name']; ?>
" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['nameRequire']; ?>
"/></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['isJailbreak']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td>
     <?php echo $this->_tpl_vars['systemLang']['yes']; ?>
:<input type="radio" name="server[jailbreak]" value="1" <?php if ($this->_tpl_vars['server']['jailbreak'] == 1): ?>checked<?php endif; ?>/>&nbsp;&nbsp;
      <?php echo $this->_tpl_vars['systemLang']['no']; ?>
:<input type="radio" name="server[jailbreak]" value="0" <?php if ($this->_tpl_vars['server']['jailbreak'] == 0): ?>checked<?php endif; ?>/>

    </td>
    <td>&nbsp;</td>
  </tr>


  <tr>
  	<th>URL</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td><input type="text" class="text" name="server[server_url]" value="<?php echo $this->_tpl_vars['server']['server_url']; ?>
" dataType="Require" msg="<?php echo $this->_tpl_vars['systemLang']['urlRequire']; ?>
"/></td>
    <td>&nbsp;</td>
  </tr>

  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['serverNo']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td><input type="text" class="text" name="server[server_no]" value="<?php echo $this->_tpl_vars['server']['server_no']; ?>
" dataType="Number" msg="<?php echo $this->_tpl_vars['systemLang']['numRequire']; ?>
"/></td>
    <td><?php echo $this->_tpl_vars['systemLang']['example']; ?>
</td>
  </tr>
  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['serverStatus']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td>
    <select name="server[server_status]">
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['server_status'],'selected' => $this->_tpl_vars['server']['server_status']), $this);?>

    </select>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['serverNet']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td>
    <select name="server[server_net]">
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['serverNet'],'selected' => $this->_tpl_vars['server']['server_net']), $this);?>

    </select>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['serverEnabled']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td>
    <select name="server[server_enabled]">
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['serverEnabled'],'selected' => $this->_tpl_vars['server']['server_enabled']), $this);?>

    </select>
    </td>
    <td>&nbsp;</td>
  </tr>
   <tr>
  	<th><?php echo $this->_tpl_vars['systemLang']['serverOpentime']; ?>
</th>
    <th>&nbsp;</th>
  </tr>
  <tr>
    <td><input type="text" class="text" name="server[server_open_time]" value='<?php echo ((is_array($_tmp=$this->_tpl_vars['server']['server_open_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
' id="opentime" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
</div>
<div>
<input type="submit"  id="button" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button"/>
</div>
</form>
<script language="javascript">
	$('#opentime').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"hh:ii:00"});
</script>